<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
</head>
<body>
<form th:attr="action=@{/upload}" enctype="multipart/form-data" method="post">
    <input type="file" value="请选择..." name="file"/>
    <br/>
    <input type="submit" value="Submit"/>
</form>
</body>
</html>